package cn.felord.security.autoconfigure.annotation;

import org.springframework.security.access.prepost.PreAuthorize;

import java.lang.annotation.*;

/**
 * @author felord.cn
 * @since 2021/8/8 9:00
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@PreAuthorize("hasRole('ANONYMOUS')")
public @interface Anonymous {
}
